package cda.splash;

import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.WindowManager;
import cda.splashScreen.ScreenAnimation;
import com.badlogic.gdx.backends.android.AndroidApplication;

public class MainActivity extends AndroidApplication
{
    /** Called when the activity is first created. */
    
    public static final boolean               PORTRAIT = true;
    
    
    @Override
    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        if(PORTRAIT){
            super.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        }else{
            super.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        }
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        ScreenAnimation g = new ScreenAnimation();
        initialize(g, false);
    }
}
